package top.lilele.adminSystem.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;

/**
 * @author lilele
 */
@TableName(value = "admin_business_relation_file")
@Data
public class AdminBusinessRelationFileEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 业务id
     */
    @NotEmpty(message = "业务id不能为空")
    @TableField(value = "businessId")
    private String businessId;

    /**
     * 文件id
     */
    @NotEmpty(message = "文件id不能为空")
    @TableField(value = "fileId")
    private String fileId;

    /**
     * 类型
     */
    @TableField(value = "type")
    private Integer type;

    @TableField(value = "createdTime", fill = FieldFill.INSERT)
    private Date createdTime;
    @TableField(value = "updatedTime", fill = FieldFill.UPDATE)
    private Date updatedTime;
}
